//
//  StarPresentView.m
//  LiveStar
//
//  Created by 漪珊 on 2017/1/11.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "StarPresentView.h"

@implementation StarPresentView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)awakeFromNib {
    [super awakeFromNib];
    self.ButtonArray = @[self.PresentOne,self.PresentTwo,self.PresentThree,self.PresentFour];
    self.PresentOne.tag = 2000;
    self.PresentTwo.tag = 2001;
    self.PresentThree.tag = 2002;
    self.PresentFour.tag = 2003;
}
#pragma mark -- 选择礼物
- (IBAction)presentChoiceClick:(id)sender {
    [self.delegate SelectPresent:sender];
}

#pragma mark --  送礼物
- (IBAction)SendPresentClick:(id)sender {
    [self.delegate sendPresentClick:sender];
}
#pragma mark -- 减少礼物
- (IBAction)SubClick:(id)sender {
    [self.delegate quatityClick:sender];
}
#pragma mark -- 增加礼物
- (IBAction)addClick:(id)sender {
    [self.delegate quatityClick:sender];
}
#pragma mark -- 清空
- (IBAction)clearClick:(id)sender {
    [self.delegate quatityClick:sender];
}
- (IBAction)CloseClick:(id)sender {
    [self.delegate quatityClick:sender];
}


@end
